package com.wlx.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wlx.auth.domain.PortalUser;
import org.apache.ibatis.annotations.Param;

/**
 * 注册用户 数据层
 *
 * @author wlx
 */
public interface PortalUserMapper extends BaseMapper<PortalUser> {
    /**
     * 通过手机号查询用户信息
     *
     * @param appId 应用ID
     * @param phone 手机号
     * @return
     */
    PortalUser selectUserByPhone(@Param("appId") String appId, @Param("phone") String phone);

    /**
     * 参数查询
     *
     * @param fieldName
     * @param fieldValue
     * @return
     */
    PortalUser selectUserByParam(@Param("fieldName") String fieldName, @Param("fieldValue") String fieldValue);

}